package com.hequ.merchant.banner.api;

import com.android.volley.AuthFailureError;

import java.util.Map;

/**
 * Created by 柯尊诚 on 2015/10/26.
 * kzc
 */
public class BannerDisabledRequest extends BannerRequest<String>{

    private String bannerId;

    public BannerDisabledRequest(String bannerId, OnRequestListener<String> listener) {
        super(Method.PUT, "/banners/disabled", listener);
        this.bannerId = bannerId;
    }

    @Override
    public String parseResponse(String result) {
        return result;
    }

    @Override
    protected Map<String, String> getParams() throws AuthFailureError {
        Map<String, String> params = super.getParams();
        params.put("bannerId", bannerId);
        return params;
    }
}
